#!/bin/bash
# Copyright (c) 2020 Presto Labs Pte. Ltd.
# Author: donggu

set -e

echo '# ---------------------------------------------------------------------------- #'
echo '#                                    Cpplint                                   #'
echo '# ---------------------------------------------------------------------------- #'

find ./ -regex '.*\(\.h\|\.cc\)$' \
| grep -E -v "external|third_party|experimental" \
| parallel -k --max-args 1 cpplint --quiet --linelength=100 --filter=-build/c++11,-build/namespaces,-build/include_order,-runtime/string,-whitespace/braces 1>/dev/null
